<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
</head>
<body>
  <table border="1">
    <thead>
      <tr>
        <th>商品名称</th>
        <th>单价</th>
        <th>数量</th>
        <th>小结</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td>iphone</td>
        <td>5000</td>
        <td>10</td>
        <td>50000</td>
      </tr>
      <tr>
        <td>iphone</td>
        <td>5000</td>
        <td>10</td>
        <td>50000</td>
      </tr>
      <tr>
        <td colspan="2">总计</td>
        <td>20</td>
        <td>100000</td>
      </tr>
    </tbody>
  </table>
  <script>
    let carInfo = {
      list: [
        {
          name: 'iphone 11',
          price: '5000',
          num: 10
        },
        {
          name: 'mi 10',
          price: '4000',
          num: 12
        },
        {
          name: 'P30 pro',
          price: '5000',
          num: 15
        },
        {
          name: 'Red mi K20',
          price: '3000',
          num: 20
        },
      ]
    }
  </script>
</body>
</html>